package top.lfyao.designpattern.details.builder;

/**
 * 具体建造者类
 */
public class ConcreteBuilder1  extends Builder{
    private Product product=new Product();
    @Override
    public void buildPartHead() {
        product.add("头");
    }

    @Override
    public void buildPartBody() {
        product.add("身体");
    }

    @Override
    public void buildPartArmLeft() {
        product.add("左手");
    }

    @Override
    public void buildPartArmRight() {
        product.add("右手");
    }

    @Override
    public void buildPartLegLeft() {
        product.add("左腿");
    }

    @Override
    public void buildPartLegRight() {
        product.add("右腿");
    }

    @Override
    public Product getBuildResult() {
        return product;
    }

}
